package chapter10;

/**
 * Created by lenovo on 2016/4/6.
 */
public class StringBufferDemo {
    public static void main(String[] args) {
        StringBuffer buffer=new StringBuffer();
        buffer.append('S');
        buffer.append("tring12345Buffer");
        System.out.println(buffer.charAt(1));
        System.out.println(buffer.capacity());
        System.out.println(buffer.indexOf("ring122"));
        System.out.println("buffer="+buffer.toString());
        System.out.println(buffer.length());
    }
}
